package Utils;

import java.util.regex.Matcher;

import java.util.regex.Pattern;

public class CheckMailHelper {

	public static boolean isMail(String mail) {

		Pattern p = Pattern
				.compile("^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\\.([a-zA-Z0-9_-])+)+$");

		Matcher m = p.matcher(mail);

		return m.matches();

	}

}
